

import java.util.Scanner;
import java.math.BigDecimal;

public class ex04 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            BigDecimal a = new BigDecimal(in.next().toString());
            BigDecimal b = new BigDecimal(in.next().toString());
            System.out.println(a.add(b));
            System.out.println(a.multiply(b));
        }
    }
}